 <!-- Example table -->
<div class="container_12"> 
    <div class="module">
        <h2><span>Add Venue Type</span></h2>
        <div class="module-body">
            <div style="margin-top:13px;">
                <?php
                if(isset($errMsg)){?>
                    <span class="notification"><?php echo $_MESSESGE[$errMsg];?></span>
                <?php }?>
			</div>
                        
            <form id="adminForm" name="admin_frm" action="" method="post" enctype="multipart/form-data">
				<p>
					<label>Venue Type</label>
					<div id="availability_info"></div>
					<input type="text" class="input-short check_availability" name="venue_type" value="<?php echo $_POST['venue_type'];?>" />
					<!--  <span class="notification-input ni-correct">This is correct, thanks!</span> -->
				</p>  
				<p>
					<label>Venue Description</label>
					<?php $editor->editor('description', $_POST['description']) ;?>
				</p>	
				<fieldset>
					<input class="submit-green" type="submit" name="submit" value="Submit" /> 
				   <input class="submit-gray" type="button" value="Cancel" onclick="javascript: window.location='<?php echo _SITE_ADMIN_URL_?>'+'venue/venuetype_mng.tpl';" />
				</fieldset>
			</form>
		</div> <!-- End .module-body -->
	</div>  <!-- End .module -->
</div>
<div style="clear:both;"></div>
<script type="text/javascript">
	var root_path = '<?php echo _SITE_ADMIN_URL_?>';
	var table = 'venue_type_master';
	var field = 'venue_type';
	
	$().ready(function() {
		$("#adminForm").validate({
			rules: {
				venue_type: "required",
				description: "required"
			},
			messages: {
				venue_type: "Please enter venue type name",
				description: "Please enter venue type description"
			}
		});
	});
</script> 
<script type="text/javascript" src="<?php echo _ADMIN_JS_; ?>check_availability.js"></script>